package org.skydiveapplibrary.repository;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

public class DatabaseCursor
{
    private SQLiteDatabase _database;
    private Cursor _cursor;
    
    public DatabaseCursor(SQLiteDatabase database, Cursor cursor)
    {
        _database = database;
        _cursor = cursor;
    }
    
    public Cursor getCursor()
    {
        return _cursor;
    }
    
    public void close()
    {
        _cursor.close();
        _database.close();
    }
}
